home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / HyperCard / DataBase 1.0.1 / DataBase 1.0v1 / DataBase 1.0v1 / background_3664.xml < prev    next >
Encoding:
Extensible Markup Language  |  1993-04-26  |  32.5 KB  |  902 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>3664</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_3997.pbm</bitmap>
  7.     <cantDelete> <true /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_6249.css" />
  11.     <part>
  12.         <id>81</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <true /> </sharedText>
  18.         <fixedLineHeight> <true /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <false /> </lockText>
  21.         <rect>
  22.             <left>11</left>
  23.             <top>21</top>
  24.             <right>79</right>
  25.             <bottom>37</bottom>
  26.         </rect>
  27.         <style>transparent</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>left</textAlign>
  36.         <font>Helvetica</font>
  37.         <textSize>12</textSize>
  38.         <textStyle>underline</textStyle>
  39.         <textHeight>16</textHeight>
  40.         <name>Title Label</name>
  41.         <script></script>
  42.     </part>
  43.     <part>
  44.         <id>80</id>
  45.         <type>field</type>
  46.         <visible> <true /> </visible>
  47.         <dontWrap> <false /> </dontWrap>
  48.         <dontSearch> <false /> </dontSearch>
  49.         <sharedText> <true /> </sharedText>
  50.         <fixedLineHeight> <true /> </fixedLineHeight>
  51.         <autoTab> <false /> </autoTab>
  52.         <lockText> <false /> </lockText>
  53.         <rect>
  54.             <left>11</left>
  55.             <top>75</top>
  56.             <right>79</right>
  57.             <bottom>91</bottom>
  58.         </rect>
  59.         <style>transparent</style>
  60.         <autoSelect> <false /> </autoSelect>
  61.         <showLines> <false /> </showLines>
  62.         <wideMargins> <false /> </wideMargins>
  63.         <multipleLines> <false /> </multipleLines>
  64.         <reservedFamily> 0 </reservedFamily>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>0</icon>
  67.         <textAlign>left</textAlign>
  68.         <font>Helvetica</font>
  69.         <textSize>12</textSize>
  70.         <textStyle>underline</textStyle>
  71.         <textHeight>16</textHeight>
  72.         <name>Author Label</name>
  73.         <script></script>
  74.     </part>
  75.     <part>
  76.         <id>79</id>
  77.         <type>field</type>
  78.         <visible> <true /> </visible>
  79.         <dontWrap> <false /> </dontWrap>
  80.         <dontSearch> <false /> </dontSearch>
  81.         <sharedText> <true /> </sharedText>
  82.         <fixedLineHeight> <true /> </fixedLineHeight>
  83.         <autoTab> <false /> </autoTab>
  84.         <lockText> <false /> </lockText>
  85.         <rect>
  86.             <left>11</left>
  87.             <top>113</top>
  88.             <right>79</right>
  89.             <bottom>129</bottom>
  90.         </rect>
  91.         <style>transparent</style>
  92.         <autoSelect> <false /> </autoSelect>
  93.         <showLines> <false /> </showLines>
  94.         <wideMargins> <false /> </wideMargins>
  95.         <multipleLines> <false /> </multipleLines>
  96.         <reservedFamily> 0 </reservedFamily>
  97.         <titleWidth>0</titleWidth>
  98.         <icon>0</icon>
  99.         <textAlign>left</textAlign>
  100.         <font>Helvetica</font>
  101.         <textSize>12</textSize>
  102.         <textStyle>underline</textStyle>
  103.         <textHeight>16</textHeight>
  104.         <name>Address Label</name>
  105.         <script></script>
  106.     </part>
  107.     <part>
  108.         <id>75</id>
  109.         <type>field</type>
  110.         <visible> <true /> </visible>
  111.         <dontWrap> <false /> </dontWrap>
  112.         <dontSearch> <false /> </dontSearch>
  113.         <sharedText> <true /> </sharedText>
  114.         <fixedLineHeight> <true /> </fixedLineHeight>
  115.         <autoTab> <false /> </autoTab>
  116.         <lockText> <false /> </lockText>
  117.         <rect>
  118.             <left>11</left>
  119.             <top>151</top>
  120.             <right>79</right>
  121.             <bottom>167</bottom>
  122.         </rect>
  123.         <style>transparent</style>
  124.         <autoSelect> <false /> </autoSelect>
  125.         <showLines> <false /> </showLines>
  126.         <wideMargins> <false /> </wideMargins>
  127.         <multipleLines> <false /> </multipleLines>
  128.         <reservedFamily> 0 </reservedFamily>
  129.         <titleWidth>0</titleWidth>
  130.         <icon>0</icon>
  131.         <textAlign>left</textAlign>
  132.         <font>Helvetica</font>
  133.         <textSize>12</textSize>
  134.         <textStyle>underline</textStyle>
  135.         <textHeight>16</textHeight>
  136.         <name>Source Label</name>
  137.         <script></script>
  138.     </part>
  139.     <part>
  140.         <id>82</id>
  141.         <type>field</type>
  142.         <visible> <true /> </visible>
  143.         <dontWrap> <false /> </dontWrap>
  144.         <dontSearch> <false /> </dontSearch>
  145.         <sharedText> <true /> </sharedText>
  146.         <fixedLineHeight> <true /> </fixedLineHeight>
  147.         <autoTab> <false /> </autoTab>
  148.         <lockText> <false /> </lockText>
  149.         <rect>
  150.             <left>11</left>
  151.             <top>190</top>
  152.             <right>79</right>
  153.             <bottom>206</bottom>
  154.         </rect>
  155.         <style>transparent</style>
  156.         <autoSelect> <false /> </autoSelect>
  157.         <showLines> <false /> </showLines>
  158.         <wideMargins> <false /> </wideMargins>
  159.         <multipleLines> <false /> </multipleLines>
  160.         <reservedFamily> 0 </reservedFamily>
  161.         <titleWidth>0</titleWidth>
  162.         <icon>0</icon>
  163.         <textAlign>left</textAlign>
  164.         <font>Helvetica</font>
  165.         <textSize>12</textSize>
  166.         <textStyle>underline</textStyle>
  167.         <textHeight>16</textHeight>
  168.         <name>Abstract Label</name>
  169.         <script></script>
  170.     </part>
  171.     <part>
  172.         <id>4</id>
  173.         <type>field</type>
  174.         <visible> <true /> </visible>
  175.         <dontWrap> <false /> </dontWrap>
  176.         <dontSearch> <false /> </dontSearch>
  177.         <sharedText> <false /> </sharedText>
  178.         <fixedLineHeight> <true /> </fixedLineHeight>
  179.         <autoTab> <true /> </autoTab>
  180.         <lockText> <false /> </lockText>
  181.         <rect>
  182.             <left>78</left>
  183.             <top>21</top>
  184.             <right>411</right>
  185.             <bottom>73</bottom>
  186.         </rect>
  187.         <style>scrolling</style>
  188.         <autoSelect> <false /> </autoSelect>
  189.         <showLines> <false /> </showLines>
  190.         <wideMargins> <false /> </wideMargins>
  191.         <multipleLines> <false /> </multipleLines>
  192.         <reservedFamily> 0 </reservedFamily>
  193.         <titleWidth>0</titleWidth>
  194.         <icon>0</icon>
  195.         <textAlign>left</textAlign>
  196.         <font>Helvetica</font>
  197.         <textSize>12</textSize>
  198.         <textStyle>plain</textStyle>
  199.         <textHeight>16</textHeight>
  200.         <name>Title</name>
  201.         <script></script>
  202.     </part>
  203.     <part>
  204.         <id>97</id>
  205.         <type>field</type>
  206.         <visible> <true /> </visible>
  207.         <dontWrap> <false /> </dontWrap>
  208.         <dontSearch> <false /> </dontSearch>
  209.         <sharedText> <false /> </sharedText>
  210.         <fixedLineHeight> <true /> </fixedLineHeight>
  211.         <autoTab> <true /> </autoTab>
  212.         <lockText> <false /> </lockText>
  213.         <rect>
  214.             <left>78</left>
  215.             <top>75</top>
  216.             <right>411</right>
  217.             <bottom>111</bottom>
  218.         </rect>
  219.         <style>rectangle</style>
  220.         <autoSelect> <false /> </autoSelect>
  221.         <showLines> <false /> </showLines>
  222.         <wideMargins> <false /> </wideMargins>
  223.         <multipleLines> <false /> </multipleLines>
  224.         <reservedFamily> 0 </reservedFamily>
  225.         <titleWidth>0</titleWidth>
  226.         <icon>0</icon>
  227.         <textAlign>left</textAlign>
  228.         <font>Helvetica</font>
  229.         <textSize>12</textSize>
  230.         <textStyle>plain</textStyle>
  231.         <textHeight>16</textHeight>
  232.         <name>Author</name>
  233.         <script></script>
  234.     </part>
  235.     <part>
  236.         <id>6</id>
  237.         <type>field</type>
  238.         <visible> <true /> </visible>
  239.         <dontWrap> <false /> </dontWrap>
  240.         <dontSearch> <false /> </dontSearch>
  241.         <sharedText> <false /> </sharedText>
  242.         <fixedLineHeight> <true /> </fixedLineHeight>
  243.         <autoTab> <true /> </autoTab>
  244.         <lockText> <false /> </lockText>
  245.         <rect>
  246.             <left>78</left>
  247.             <top>113</top>
  248.             <right>411</right>
  249.             <bottom>149</bottom>
  250.         </rect>
  251.         <style>rectangle</style>
  252.         <autoSelect> <false /> </autoSelect>
  253.         <showLines> <false /> </showLines>
  254.         <wideMargins> <false /> </wideMargins>
  255.         <multipleLines> <false /> </multipleLines>
  256.         <reservedFamily> 0 </reservedFamily>
  257.         <titleWidth>0</titleWidth>
  258.         <icon>0</icon>
  259.         <textAlign>left</textAlign>
  260.         <font>Helvetica</font>
  261.         <textSize>12</textSize>
  262.         <textStyle>plain</textStyle>
  263.         <textHeight>16</textHeight>
  264.         <name>Address</name>
  265.         <script></script>
  266.     </part>
  267.     <part>
  268.         <id>98</id>
  269.         <type>field</type>
  270.         <visible> <true /> </visible>
  271.         <dontWrap> <false /> </dontWrap>
  272.         <dontSearch> <false /> </dontSearch>
  273.         <sharedText> <false /> </sharedText>
  274.         <fixedLineHeight> <true /> </fixedLineHeight>
  275.         <autoTab> <true /> </autoTab>
  276.         <lockText> <false /> </lockText>
  277.         <rect>
  278.             <left>78</left>
  279.             <top>151</top>
  280.             <right>411</right>
  281.             <bottom>187</bottom>
  282.         </rect>
  283.         <style>rectangle</style>
  284.         <autoSelect> <false /> </autoSelect>
  285.         <showLines> <false /> </showLines>
  286.         <wideMargins> <false /> </wideMargins>
  287.         <multipleLines> <false /> </multipleLines>
  288.         <reservedFamily> 0 </reservedFamily>
  289.         <titleWidth>0</titleWidth>
  290.         <icon>0</icon>
  291.         <textAlign>left</textAlign>
  292.         <font>Helvetica</font>
  293.         <textSize>12</textSize>
  294.         <textStyle>plain</textStyle>
  295.         <textHeight>16</textHeight>
  296.         <name>Source</name>
  297.         <script></script>
  298.     </part>
  299.     <part>
  300.         <id>99</id>
  301.         <type>field</type>
  302.         <visible> <true /> </visible>
  303.         <dontWrap> <false /> </dontWrap>
  304.         <dontSearch> <false /> </dontSearch>
  305.         <sharedText> <false /> </sharedText>
  306.         <fixedLineHeight> <true /> </fixedLineHeight>
  307.         <autoTab> <true /> </autoTab>
  308.         <lockText> <false /> </lockText>
  309.         <rect>
  310.             <left>78</left>
  311.             <top>190</top>
  312.             <right>411</right>
  313.             <bottom>290</bottom>
  314.         </rect>
  315.         <style>scrolling</style>
  316.         <autoSelect> <false /> </autoSelect>
  317.         <showLines> <false /> </showLines>
  318.         <wideMargins> <false /> </wideMargins>
  319.         <multipleLines> <false /> </multipleLines>
  320.         <reservedFamily> 0 </reservedFamily>
  321.         <titleWidth>0</titleWidth>
  322.         <icon>0</icon>
  323.         <textAlign>left</textAlign>
  324.         <font>Helvetica</font>
  325.         <textSize>12</textSize>
  326.         <textStyle>plain</textStyle>
  327.         <textHeight>16</textHeight>
  328.         <name>Abstract</name>
  329.         <script></script>
  330.     </part>
  331.     <part>
  332.         <id>22</id>
  333.         <type>button</type>
  334.         <visible> <true /> </visible>
  335.         <reserved5> 0 </reserved5>
  336.         <reserved4> 0 </reserved4>
  337.         <reserved3> 0 </reserved3>
  338.         <reserved2> 0 </reserved2>
  339.         <reserved1> 0 </reserved1>
  340.         <enabled> <true /> </enabled>
  341.         <rect>
  342.             <left>446</left>
  343.             <top>31</top>
  344.             <right>487</right>
  345.             <bottom>76</bottom>
  346.         </rect>
  347.         <style>transparent</style>
  348.         <showName> <true /> </showName>
  349.         <highlight> <false /> </highlight>
  350.         <autoHighlight> <true /> </autoHighlight>
  351.         <sharedHighlight> <true /> </sharedHighlight>
  352.         <family>0</family>
  353.         <titleWidth>0</titleWidth>
  354.         <icon>24004</icon>
  355.         <textAlign>center</textAlign>
  356.         <font>Avant Garde</font>
  357.         <textSize>10</textSize>
  358.         <textStyle>plain</textStyle>
  359.         <name>Home</name>
  360.         <script>on mouseUp
  361. set cursor to watch
  362. go home
  363. end mouseUp
  364. </script>
  365.     </part>
  366.     <part>
  367.         <id>51</id>
  368.         <type>button</type>
  369.         <visible> <true /> </visible>
  370.         <reserved5> 0 </reserved5>
  371.         <reserved4> 0 </reserved4>
  372.         <reserved3> 0 </reserved3>
  373.         <reserved2> 0 </reserved2>
  374.         <reserved1> 0 </reserved1>
  375.         <enabled> <true /> </enabled>
  376.         <rect>
  377.             <left>440</left>
  378.             <top>227</top>
  379.             <right>502</right>
  380.             <bottom>247</bottom>
  381.         </rect>
  382.         <style>rectangle</style>
  383.         <showName> <true /> </showName>
  384.         <highlight> <false /> </highlight>
  385.         <autoHighlight> <true /> </autoHighlight>
  386.         <sharedHighlight> <true /> </sharedHighlight>
  387.         <family>0</family>
  388.         <titleWidth>0</titleWidth>
  389.         <icon>0</icon>
  390.         <textAlign>center</textAlign>
  391.         <font>Avant Garde</font>
  392.         <textSize>12</textSize>
  393.         <textStyle>plain</textStyle>
  394.         <name>New</name>
  395.         <script>on mouseUp
  396. -- Requires handler: toggleMark
  397. -- create a new card and leaving the cursor into the name field
  398. set lockMessages to true
  399. doMenu "New Card"
  400. toggleMark false
  401. select after text of bg field id 4
  402. end mouseUp
  403. </script>
  404.     </part>
  405.     <part>
  406.         <id>52</id>
  407.         <type>button</type>
  408.         <visible> <true /> </visible>
  409.         <reserved5> 0 </reserved5>
  410.         <reserved4> 0 </reserved4>
  411.         <reserved3> 0 </reserved3>
  412.         <reserved2> 0 </reserved2>
  413.         <reserved1> 0 </reserved1>
  414.         <enabled> <true /> </enabled>
  415.         <rect>
  416.             <left>440</left>
  417.             <top>256</top>
  418.             <right>502</right>
  419.             <bottom>276</bottom>
  420.         </rect>
  421.         <style>rectangle</style>
  422.         <showName> <true /> </showName>
  423.         <highlight> <false /> </highlight>
  424.         <autoHighlight> <true /> </autoHighlight>
  425.         <sharedHighlight> <true /> </sharedHighlight>
  426.         <family>0</family>
  427.         <titleWidth>0</titleWidth>
  428.         <icon>0</icon>
  429.         <textAlign>center</textAlign>
  430.         <font>Avant Garde</font>
  431.         <textSize>12</textSize>
  432.         <textStyle>plain</textStyle>
  433.         <name>Delete</name>
  434.         <script>on mouseUp
  435. -- Requires handler: deleteCurrentCard
  436. if the optionKey is down then
  437. doMenu "Delete Card"
  438. exit mouseUp
  439. end if
  440. if the number of cards in this bkgnd = 1 then
  441. answer "Can't delete the last database card." with "OK" -- ‚àÜ
  442. exit to hyperCard
  443. end if
  444. answer "Delete this data card?" with "Cancel" or "OK" -- ‚àÜ
  445. if it is "OK" then -- ‚àÜ
  446. set cursor to watch
  447. get number of this card
  448. lock screen
  449. doMenu "Delete Card"
  450. go card it - 1
  451. unlock screen
  452. end if
  453. end mouseUp
  454. </script>
  455.     </part>
  456.     <part>
  457.         <id>53</id>
  458.         <type>button</type>
  459.         <visible> <true /> </visible>
  460.         <reserved5> 0 </reserved5>
  461.         <reserved4> 0 </reserved4>
  462.         <reserved3> 0 </reserved3>
  463.         <reserved2> 0 </reserved2>
  464.         <reserved1> 0 </reserved1>
  465.         <enabled> <true /> </enabled>
  466.         <rect>
  467.             <left>440</left>
  468.             <top>198</top>
  469.             <right>502</right>
  470.             <bottom>218</bottom>
  471.         </rect>
  472.         <style>rectangle</style>
  473.         <showName> <true /> </showName>
  474.         <highlight> <false /> </highlight>
  475.         <autoHighlight> <true /> </autoHighlight>
  476.         <sharedHighlight> <true /> </sharedHighlight>
  477.         <family>0</family>
  478.         <titleWidth>0</titleWidth>
  479.         <icon>0</icon>
  480.         <textAlign>center</textAlign>
  481.         <font>Avant Garde</font>
  482.         <textSize>12</textSize>
  483.         <textStyle>plain</textStyle>
  484.         <name>Find‚Ķ</name>
  485.         <script>on mouseUp
  486. -- Requires handler: findText
  487. global DataBaseFind
  488. ask "What text do you want to find?" with DataBaseFind -- ‚àÜ
  489. if it is empty then exit mouseUp
  490. else
  491. put it into DataBaseFind
  492. findText
  493. end if
  494. end mouseUp</script>
  495.     </part>
  496.     <part>
  497.         <id>76</id>
  498.         <type>button</type>
  499.         <visible> <true /> </visible>
  500.         <reserved5> 0 </reserved5>
  501.         <reserved4> 0 </reserved4>
  502.         <reserved3> 0 </reserved3>
  503.         <reserved2> 0 </reserved2>
  504.         <reserved1> 0 </reserved1>
  505.         <enabled> <true /> </enabled>
  506.         <rect>
  507.             <left>444</left>
  508.             <top>99</top>
  509.             <right>470</right>
  510.             <bottom>122</bottom>
  511.         </rect>
  512.         <style>transparent</style>
  513.         <showName> <false /> </showName>
  514.         <highlight> <false /> </highlight>
  515.         <autoHighlight> <true /> </autoHighlight>
  516.         <sharedHighlight> <true /> </sharedHighlight>
  517.         <family>0</family>
  518.         <titleWidth>0</titleWidth>
  519.         <icon>20461</icon>
  520.         <textAlign>center</textAlign>
  521.         <font>Chicago</font>
  522.         <textSize>12</textSize>
  523.         <textStyle>plain</textStyle>
  524.         <name>Prev</name>
  525.         <script>on mouseDown
  526. -- go to the previous card
  527. -- if the shift key is down go to the previously marked card
  528. visual effect wipe right very fast
  529. if the shiftKey is down then go previous marked card
  530. else if the commandKey is down then go first card of this bkgnd
  531. else go prev card of this bkgnd
  532. end mouseDown
  533.  
  534. on mouseStillDown
  535. -- Requires handler: mouseDown
  536. mouseDown
  537. end mouseStillDown</script>
  538.     </part>
  539.     <part>
  540.         <id>77</id>
  541.         <type>button</type>
  542.         <visible> <true /> </visible>
  543.         <reserved5> 0 </reserved5>
  544.         <reserved4> 0 </reserved4>
  545.         <reserved3> 0 </reserved3>
  546.         <reserved2> 0 </reserved2>
  547.         <reserved1> 0 </reserved1>
  548.         <enabled> <true /> </enabled>
  549.         <rect>
  550.             <left>477</left>
  551.             <top>99</top>
  552.             <right>502</right>
  553.             <bottom>122</bottom>
  554.         </rect>
  555.         <style>transparent</style>
  556.         <showName> <false /> </showName>
  557.         <highlight> <false /> </highlight>
  558.         <autoHighlight> <true /> </autoHighlight>
  559.         <sharedHighlight> <true /> </sharedHighlight>
  560.         <family>0</family>
  561.         <titleWidth>0</titleWidth>
  562.         <icon>22126</icon>
  563.         <textAlign>center</textAlign>
  564.         <font>Chicago</font>
  565.         <textSize>12</textSize>
  566.         <textStyle>plain</textStyle>
  567.         <name>Next</name>
  568.         <script>on mouseDown
  569. -- go to the next card
  570. -- if the shift key is down go to the next marked card
  571. visual effect wipe right very fast
  572. if the shiftKey is down then go next marked card
  573. else if the commandKey is down then go last card of this bkgnd
  574. else go next card of this bkgnd
  575. end mouseDown
  576.  
  577. on mouseStillDown
  578. -- Requires handler: mouseDown
  579. mouseDown
  580. end mouseStillDown</script>
  581.     </part>
  582.     <part>
  583.         <id>103</id>
  584.         <type>button</type>
  585.         <visible> <true /> </visible>
  586.         <reserved5> 0 </reserved5>
  587.         <reserved4> 0 </reserved4>
  588.         <reserved3> 0 </reserved3>
  589.         <reserved2> 0 </reserved2>
  590.         <reserved1> 0 </reserved1>
  591.         <enabled> <true /> </enabled>
  592.         <rect>
  593.             <left>429</left>
  594.             <top>317</top>
  595.             <right>502</right>
  596.             <bottom>341</bottom>
  597.         </rect>
  598.         <style>checkbox</style>
  599.         <showName> <true /> </showName>
  600.         <highlight> <false /> </highlight>
  601.         <autoHighlight> <true /> </autoHighlight>
  602.         <sharedHighlight> <false /> </sharedHighlight>
  603.         <family>0</family>
  604.         <titleWidth>0</titleWidth>
  605.         <icon>0</icon>
  606.         <textAlign>center</textAlign>
  607.         <font>Avant Garde</font>
  608.         <textSize>12</textSize>
  609.         <textStyle>plain</textStyle>
  610.         <name>Marked</name>
  611.         <script>on mouseUp
  612. -- Requires handler: toggleMark
  613. toggleMark not marked of this card
  614. end mouseUp
  615. </script>
  616.     </part>
  617.     <part>
  618.         <id>110</id>
  619.         <type>field</type>
  620.         <visible> <true /> </visible>
  621.         <dontWrap> <false /> </dontWrap>
  622.         <dontSearch> <true /> </dontSearch>
  623.         <sharedText> <false /> </sharedText>
  624.         <fixedLineHeight> <false /> </fixedLineHeight>
  625.         <autoTab> <false /> </autoTab>
  626.         <lockText> <true /> </lockText>
  627.         <rect>
  628.             <left>291</left>
  629.             <top>322</top>
  630.             <right>393</right>
  631.             <bottom>341</bottom>
  632.         </rect>
  633.         <style>transparent</style>
  634.         <autoSelect> <false /> </autoSelect>
  635.         <showLines> <false /> </showLines>
  636.         <wideMargins> <false /> </wideMargins>
  637.         <multipleLines> <false /> </multipleLines>
  638.         <reservedFamily> 0 </reservedFamily>
  639.         <titleWidth>0</titleWidth>
  640.         <icon>0</icon>
  641.         <textAlign>right</textAlign>
  642.         <font>Avant Garde</font>
  643.         <textSize>12</textSize>
  644.         <textStyle>plain</textStyle>
  645.         <textHeight>16</textHeight>
  646.         <name>Nummer</name>
  647.         <script></script>
  648.     </part>
  649.     <part>
  650.         <id>111</id>
  651.         <type>button</type>
  652.         <visible> <true /> </visible>
  653.         <reserved5> 0 </reserved5>
  654.         <reserved4> 0 </reserved4>
  655.         <reserved3> 0 </reserved3>
  656.         <reserved2> 0 </reserved2>
  657.         <reserved1> 0 </reserved1>
  658.         <enabled> <true /> </enabled>
  659.         <rect>
  660.             <left>165</left>
  661.             <top>317</top>
  662.             <right>258</right>
  663.             <bottom>341</bottom>
  664.         </rect>
  665.         <style>checkbox</style>
  666.         <showName> <true /> </showName>
  667.         <highlight> <false /> </highlight>
  668.         <autoHighlight> <true /> </autoHighlight>
  669.         <sharedHighlight> <false /> </sharedHighlight>
  670.         <family>0</family>
  671.         <titleWidth>0</titleWidth>
  672.         <icon>0</icon>
  673.         <textAlign>center</textAlign>
  674.         <font>Avant Garde</font>
  675.         <textSize>12</textSize>
  676.         <textStyle>plain</textStyle>
  677.         <name>Photocopy</name>
  678.         <script></script>
  679.     </part>
  680.     <part>
  681.         <id>113</id>
  682.         <type>field</type>
  683.         <visible> <true /> </visible>
  684.         <dontWrap> <false /> </dontWrap>
  685.         <dontSearch> <true /> </dontSearch>
  686.         <sharedText> <false /> </sharedText>
  687.         <fixedLineHeight> <false /> </fixedLineHeight>
  688.         <autoTab> <false /> </autoTab>
  689.         <lockText> <true /> </lockText>
  690.         <rect>
  691.             <left>26</left>
  692.             <top>322</top>
  693.             <right>146</right>
  694.             <bottom>341</bottom>
  695.         </rect>
  696.         <style>transparent</style>
  697.         <autoSelect> <false /> </autoSelect>
  698.         <showLines> <false /> </showLines>
  699.         <wideMargins> <false /> </wideMargins>
  700.         <multipleLines> <false /> </multipleLines>
  701.         <reservedFamily> 0 </reservedFamily>
  702.         <titleWidth>0</titleWidth>
  703.         <icon>0</icon>
  704.         <textAlign>left</textAlign>
  705.         <font>Avant Garde</font>
  706.         <textSize>12</textSize>
  707.         <textStyle>plain</textStyle>
  708.         <textHeight>16</textHeight>
  709.         <name>Markede</name>
  710.         <script></script>
  711.     </part>
  712.     <part>
  713.         <id>114</id>
  714.         <type>field</type>
  715.         <visible> <true /> </visible>
  716.         <dontWrap> <false /> </dontWrap>
  717.         <dontSearch> <false /> </dontSearch>
  718.         <sharedText> <true /> </sharedText>
  719.         <fixedLineHeight> <true /> </fixedLineHeight>
  720.         <autoTab> <false /> </autoTab>
  721.         <lockText> <false /> </lockText>
  722.         <rect>
  723.             <left>11</left>
  724.             <top>293</top>
  725.             <right>79</right>
  726.             <bottom>309</bottom>
  727.         </rect>
  728.         <style>transparent</style>
  729.         <autoSelect> <false /> </autoSelect>
  730.         <showLines> <false /> </showLines>
  731.         <wideMargins> <false /> </wideMargins>
  732.         <multipleLines> <false /> </multipleLines>
  733.         <reservedFamily> 0 </reservedFamily>
  734.         <titleWidth>0</titleWidth>
  735.         <icon>0</icon>
  736.         <textAlign>left</textAlign>
  737.         <font>Avant Garde</font>
  738.         <textSize>12</textSize>
  739.         <textStyle>underline</textStyle>
  740.         <textHeight>16</textHeight>
  741.         <name>PubYear Label</name>
  742.         <script></script>
  743.     </part>
  744.     <part>
  745.         <id>115</id>
  746.         <type>field</type>
  747.         <visible> <true /> </visible>
  748.         <dontWrap> <false /> </dontWrap>
  749.         <dontSearch> <false /> </dontSearch>
  750.         <sharedText> <false /> </sharedText>
  751.         <fixedLineHeight> <true /> </fixedLineHeight>
  752.         <autoTab> <false /> </autoTab>
  753.         <lockText> <false /> </lockText>
  754.         <rect>
  755.             <left>78</left>
  756.             <top>293</top>
  757.             <right>149</right>
  758.             <bottom>309</bottom>
  759.         </rect>
  760.         <style>rectangle</style>
  761.         <autoSelect> <false /> </autoSelect>
  762.         <showLines> <false /> </showLines>
  763.         <wideMargins> <false /> </wideMargins>
  764.         <multipleLines> <false /> </multipleLines>
  765.         <reservedFamily> 0 </reservedFamily>
  766.         <titleWidth>0</titleWidth>
  767.         <icon>0</icon>
  768.         <textAlign>left</textAlign>
  769.         <font>Avant Garde</font>
  770.         <textSize>12</textSize>
  771.         <textStyle>plain</textStyle>
  772.         <textHeight>16</textHeight>
  773.         <name>PubYear</name>
  774.         <script></script>
  775.     </part>
  776.     <part>
  777.         <id>116</id>
  778.         <type>field</type>
  779.         <visible> <true /> </visible>
  780.         <dontWrap> <false /> </dontWrap>
  781.         <dontSearch> <false /> </dontSearch>
  782.         <sharedText> <true /> </sharedText>
  783.         <fixedLineHeight> <true /> </fixedLineHeight>
  784.         <autoTab> <false /> </autoTab>
  785.         <lockText> <false /> </lockText>
  786.         <rect>
  787.             <left>182</left>
  788.             <top>293</top>
  789.             <right>249</right>
  790.             <bottom>309</bottom>
  791.         </rect>
  792.         <style>transparent</style>
  793.         <autoSelect> <false /> </autoSelect>
  794.         <showLines> <false /> </showLines>
  795.         <wideMargins> <false /> </wideMargins>
  796.         <multipleLines> <false /> </multipleLines>
  797.         <reservedFamily> 0 </reservedFamily>
  798.         <titleWidth>0</titleWidth>
  799.         <icon>0</icon>
  800.         <textAlign>left</textAlign>
  801.         <font>Avant Garde</font>
  802.         <textSize>12</textSize>
  803.         <textStyle>underline</textStyle>
  804.         <textHeight>16</textHeight>
  805.         <name>PubCountry Label</name>
  806.         <script></script>
  807.     </part>
  808.     <part>
  809.         <id>117</id>
  810.         <type>field</type>
  811.         <visible> <true /> </visible>
  812.         <dontWrap> <false /> </dontWrap>
  813.         <dontSearch> <false /> </dontSearch>
  814.         <sharedText> <false /> </sharedText>
  815.         <fixedLineHeight> <true /> </fixedLineHeight>
  816.         <autoTab> <false /> </autoTab>
  817.         <lockText> <false /> </lockText>
  818.         <rect>
  819.             <left>248</left>
  820.             <top>293</top>
  821.             <right>411</right>
  822.             <bottom>309</bottom>
  823.         </rect>
  824.         <style>rectangle</style>
  825.         <autoSelect> <false /> </autoSelect>
  826.         <showLines> <false /> </showLines>
  827.         <wideMargins> <false /> </wideMargins>
  828.         <multipleLines> <false /> </multipleLines>
  829.         <reservedFamily> 0 </reservedFamily>
  830.         <titleWidth>0</titleWidth>
  831.         <icon>0</icon>
  832.         <textAlign>left</textAlign>
  833.         <font>Avant Garde</font>
  834.         <textSize>12</textSize>
  835.         <textStyle>plain</textStyle>
  836.         <textHeight>16</textHeight>
  837.         <name>PubCountry</name>
  838.         <script></script>
  839.     </part>
  840.     <part>
  841.         <id>121</id>
  842.         <type>button</type>
  843.         <visible> <true /> </visible>
  844.         <reserved5> 0 </reserved5>
  845.         <reserved4> 0 </reserved4>
  846.         <reserved3> 0 </reserved3>
  847.         <reserved2> 0 </reserved2>
  848.         <reserved1> 0 </reserved1>
  849.         <enabled> <true /> </enabled>
  850.         <rect>
  851.             <left>444</left>
  852.             <top>129</top>
  853.             <right>470</right>
  854.             <bottom>154</bottom>
  855.         </rect>
  856.         <style>transparent</style>
  857.         <showName> <false /> </showName>
  858.         <highlight> <false /> </highlight>
  859.         <autoHighlight> <true /> </autoHighlight>
  860.         <sharedHighlight> <true /> </sharedHighlight>
  861.         <family>0</family>
  862.         <titleWidth>0</titleWidth>
  863.         <icon>30557</icon>
  864.         <textAlign>center</textAlign>
  865.         <font>Geneva</font>
  866.         <textSize>10</textSize>
  867.         <textStyle>bold</textStyle>
  868.         <name>First Card of This Bkgnd</name>
  869.         <script>on mouseUp
  870. go to first card of this background
  871. end mouseUp
  872. </script>
  873.     </part>
  874.     <part>
  875.         <id>122</id>
  876.         <type>button</type>
  877.         <visible> <true /> </visible>
  878.         <reserved5> 0 </reserved5>
  879.         <reserved4> 0 </reserved4>
  880.         <reserved3> 0 </reserved3>
  881.         <reserved2> 0 </reserved2>
  882.         <reserved1> 0 </reserved1>
  883.         <enabled> <true /> </enabled>
  884.         <rect>
  885.             <left>477</left>
  886.             <top>129</top>
  887.             <right>502</right>
  888.             <bottom>154</bottom>
  889.         </rect>
  890.         <style>transparent</style>
  891.         <showName> <false /> </showName>
  892.         <highlight> <false /> </highlight>
  893.         <autoHighlight> <true /> </autoHighlight>
  894.         <sharedHighlight> <true /> </sharedHighlight>
  895.         <family>0</family>
  896.         <titleWidth>0</titleWidth>
  897.         <icon>26865</icon>
  898.         <textAlign>center</textAlign>
  899.         <font>Geneva</font>
  900.         <textSize>10</textSize>
  901.         <textStyle>bold</textStyle>
  902.         <name>Last Card of This Bkgnd</name>
  903.         <script>on mouseUp
  904. set cursor to busy
  905. go to last card of this background
  906. end mouseUp
  907. </script>
  908.     </part>
  909.     <part>
  910.         <id>123</id>
  911.         <type>button</type>
  912.         <visible> <true /> </visible>
  913.         <reserved5> 0 </reserved5>
  914.         <reserved4> 0 </reserved4>
  915.         <reserved3> 0 </reserved3>
  916.         <reserved2> 0 </reserved2>
  917.         <reserved1> 0 </reserved1>
  918.         <enabled> <true /> </enabled>
  919.         <rect>
  920.             <left>440</left>
  921.             <top>170</top>
  922.             <right>502</right>
  923.             <bottom>190</bottom>
  924.         </rect>
  925.         <style>rectangle</style>
  926.         <showName> <true /> </showName>
  927.         <highlight> <false /> </highlight>
  928.         <autoHighlight> <false /> </autoHighlight>
  929.         <sharedHighlight> <true /> </sharedHighlight>
  930.         <family>0</family>
  931.         <titleWidth>0</titleWidth>
  932.         <icon>0</icon>
  933.         <textAlign>center</textAlign>
  934.         <font>Avant Garde</font>
  935.         <textSize>12</textSize>
  936.         <textStyle>plain</textStyle>
  937.         <name>Index</name>
  938.         <script>on mouseUp
  939. go to card "Index"
  940. end mouseUp</script>
  941.     </part>
  942.     <content>
  943.         <layer>background</layer>
  944.         <id>75</id>
  945.         <text>Source:</text>
  946.     </content>
  947.     <content>
  948.         <layer>background</layer>
  949.         <id>80</id>
  950.         <text>Author(s):</text>
  951.     </content>
  952.     <content>
  953.         <layer>background</layer>
  954.         <id>79</id>
  955.         <text>Address:</text>
  956.     </content>
  957.     <content>
  958.         <layer>background</layer>
  959.         <id>82</id>
  960.         <text>Abstract:</text>
  961.     </content>
  962.     <content>
  963.         <layer>background</layer>
  964.         <id>81</id>
  965.         <text>Title:</text>
  966.     </content>
  967.     <content>
  968.         <layer>background</layer>
  969.         <id>114</id>
  970.         <text>Year:</text>
  971.     </content>
  972.     <content>
  973.         <layer>background</layer>
  974.         <id>116</id>
  975.         <text>Country:</text>
  976.     </content>
  977.     <name>Body</name>
  978.     <script>‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû
  979. Script from background script "Body" of DataBase stack
  980.  
  981. THE MESSAGE HANDLERS IN THIS SCRIPT:
  982. openCard,nd,closeBackground,arrowKey,sortCards,findText
  983. returnKey,enterKey, toggleMark
  984. importText,importTextFile,exportText
  985. writeExportedText,deleteCurrentCard, deleteAllCards
  986.  
  987. THE FUNCTION HANDLERS IN THIS SCRIPT:
  988. lastHCItem,theFields
  989. ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû
  990.  
  991. on openCard
  992. -- Requires handler: toggleMark
  993. toggleMark the marked of this card
  994. put "Card" && the number of this card && "of" && ¬¨
  995. the number of cards - 4 into bkgnd field id 110
  996. put "No. marked:" && the number of marked cards into bg field id 113
  997. pass openCard
  998. end openCard
  999.  
  1000. on openBackground
  1001. -- Requires handler: setLocationCheckMark
  1002. setLocationCheckMark(short name of this card)
  1003. end openBackground
  1004.  
  1005. on closeBackground
  1006. push card -- Store current card for possible return
  1007. pass closeBackground
  1008. end closeBackground
  1009.  
  1010. on arrowKey whichKey
  1011. if (((whichKey is "left") or (whichKey is "Right")) and (the shiftKey is down))
  1012. then go next marked card
  1013. else pass arrowKey
  1014. end arrowKey
  1015.  
  1016. -----  Sort Handlers  ------------------------------------------------
  1017.  
  1018. on sortCards sortField
  1019. put "sort cards of this bkgnd international" into sortBody
  1020. if sortField is "Title" then
  1021. do sortBody && "by bg field" && quote & sortField & quote
  1022. else if sortField is "Author" then
  1023. do sortBody && "by bg field" && quote & sortField & quote
  1024. else -- source
  1025. do sortBody && "by bg field" && quote & sortField & quote
  1026. end if
  1027. end sortCards
  1028.  
  1029. -----  Find Handlers  ------------------------------------------------
  1030.  
  1031. on findText
  1032. global DataBaseFind
  1033. if DataBaseFind is empty then exit findText
  1034. find DataBaseFind
  1035. if the result is NOT empty then
  1036. beep
  1037. answer "‚Äú" & DataBaseFind & "‚Äù was not found." -- ‚àÜ
  1038. exit findText
  1039. end if
  1040. end findText
  1041.  
  1042. on returnKey
  1043. -- Requires handler: findText
  1044. -- if the cursor is not in a field or in the message box, then
  1045. -- assume they want to find the text again.
  1046. global DataBaseFind
  1047. if DataBaseFind is not empty and the selectedField is empty
  1048. then findText else pass returnKey
  1049. end returnKey
  1050.  
  1051. on enterKey
  1052. -- Requires handler: findText
  1053. -- if the cursor is not in a field or in the message box, then
  1054. -- assume they want to find the text again.
  1055. global DataBaseFind
  1056. if DataBaseFind is not empty and the selectedField is empty
  1057. then findText else pass enterKey
  1058. end enterKey
  1059.  
  1060. -----  Misc Handlers  ------------------------------------------------
  1061.  
  1062. on toggleMark isMarked
  1063. -- hilite ('x') the card to reflect its 'marked' status
  1064. if isMarked then
  1065. set hilite of bg btn id 103 to true
  1066. set the marked of this card to true
  1067. else
  1068. set hilite of bg btn id 103 to false
  1069. set the marked of this card to false
  1070. end if
  1071. end toggleMark
  1072.  
  1073. -----  Import Text Operations  -------------------------------
  1074.  
  1075. -- text files to be imported into the stack need to be in a specific
  1076. -- format: chunks of information (such as Title, Author,
  1077. -- etc.) should be separated by returns
  1078.  
  1079. on importText
  1080. -- Requires handlers: importTextFile
  1081. -- import text a text file
  1082. answer "Import text from a text file ?" ¬¨
  1083. with "Cancel" or "Text File" -- ‚àÜ
  1084. if it is "Cancel" then exit importText -- ‚àÜ
  1085. else importTextFile
  1086. end importText
  1087.  
  1088. on importTextFile fileName
  1089. -- Requires handler: deleteCurrentCard
  1090. -- Requires function handler: theFields
  1091. -- import text from a text file stored in the correct format
  1092. if fileName is empty then
  1093. answer file "Import text from what file?" of type "TEXT" -- ‚àÜ
  1094. if the result is "Cancel" or it is empty then exit importTextFile
  1095. put it into fileName
  1096. end if
  1097. set cursor to watch
  1098. go last card of background "Body" -- add the new cards to the end of the stack
  1099. set lockRecent to true
  1100. set lockMessages to true
  1101. open file fileName
  1102. put false into exitLoop
  1103. repeat until exitLoop
  1104. if the mouseClick then
  1105. answer "Stop importing text?" with "No" or "Yes" -- ‚àÜ
  1106. if it is "Yes" then exit repeat -- ‚àÜ
  1107. end if
  1108. set cursor to busy
  1109. doMenu "New Card"
  1110. toggleMark false
  1111. repeat with fieldNum = 1 to (number of items in theFields() + 2)
  1112. read from file fileName until return
  1113. if it is empty then -- out of text
  1114. deleteCurrentCard -- delete the straggler
  1115. put true into exitLoop
  1116. exit repeat
  1117. end if
  1118. if last char of it is return then delete last char of it
  1119. if fieldNum > 2 then do "put it into" && ¬¨
  1120. item fieldNum - 2 of theFields()
  1121. end repeat
  1122. if exitLoop then exit repeat
  1123. read from file fileName until return
  1124. end repeat
  1125. close file fileName
  1126. set lockRecent to false
  1127. set lockMessages to false
  1128. end importTextFile
  1129.  
  1130. -----  Export Text Operations  -------------------------------------
  1131.  
  1132. on exportText
  1133. -- Requires handler: writeExportedText
  1134. -- Requires function handler: lastHCItem
  1135. -- if shiftKey is down use only the marked cards
  1136. put true into useAllCards -- assume all cards as default
  1137. if the shiftKey is down then put false into useAllCards -- use marked cards
  1138. if not useAllCards then
  1139. put "from marked cards" & space into prompt -- ‚àÜ
  1140. put number of marked cards into numCards
  1141. else
  1142. put empty into prompt
  1143. put number of cards in bg id 3664 into numCards
  1144. end if
  1145. ask file "Export text" && prompt & "to the file:" with "DataBase Text File" -- ‚àÜ
  1146. if the result is "Cancel" or it is empty then exit exportText
  1147. put it into fileName
  1148. writeExportedText numCards,useAllCards,fileName
  1149. put "cards" into info -- assume more than 1 card as the default -- ‚àÜ
  1150. if numCards = 1 then put "card" into info -- ‚àÜ
  1151. answer "Text from" && numCards && info && ¬¨
  1152. "was exported to the new file ‚Äú" & lastHCItem(":",fileName) & "‚Äù." -- ‚àÜ
  1153. end exportText
  1154.  
  1155. on writeExportedText numCards,useAllCards,fileName
  1156. -- Requires function handler: theFields
  1157. lock screen
  1158. if useAllCards then go card 1 of bg id 3664
  1159. else go first marked card
  1160. open file fileName
  1161. repeat with currentCard = 1 to numCards
  1162. set cursor to busy
  1163. put empty into theText
  1164. repeat with count = 1 to (number of items in theFields())
  1165. put value of (item count of theFields()) & tab after theText
  1166. end repeat
  1167. put return after theText
  1168. write theText to file fileName
  1169. if not useAllCards then go next marked card
  1170. else go next card of this bkgnd
  1171. end repeat
  1172. close file fileName
  1173. unlock screen
  1174. end writeExportedText
  1175.  
  1176. -----  Utility Handlers  --------------------------------------------
  1177.  
  1178. on deleteCurrentCard
  1179. lock screen
  1180. push previous card
  1181. doMenu "Delete Card"
  1182. pop card
  1183. unlock screen
  1184. end deleteCurrentCard
  1185.  
  1186. on deleteAllCards
  1187. -- a utility handler to clean all the cards out of the stack
  1188. lock screen
  1189. set lockMessages to true
  1190. go cd 1 of bg "body"
  1191. if the number of cds in this bg = 1 then exit deleteAllCards
  1192. repeat the number of cds in this bg - 1
  1193. set cursor to busy
  1194. set the cantDelete of this cd to false
  1195. doMenu delete card
  1196. end repeat
  1197. end deleteAllCards
  1198.  
  1199. function lastHCItem delim,theText
  1200. -- returns the portion of <theText> that follows the last <delim>
  1201. if delim is in theText then
  1202. put lastHCItem(delim,char offset(delim,theText) + 1 to ¬¨
  1203. length(theText) of theText) into theText
  1204. end if
  1205. return theText
  1206. end lastHCItem
  1207.  
  1208. -----  Data Handlers  ----------------------------------------------
  1209.  
  1210. function theFields
  1211. return "bg fld id 4,bg fld id 97,bg fld id 6," & ¬¨
  1212. "bg fld id 98,bg fld id 115,bg fld id 117,bg fld id 99"
  1213. end theFields</script>
  1214. </background>
  1215.